package com.iplay.service.notification.storage;

import java.util.List;
import java.util.Optional;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.iplay.dto.notification.NotificationDTO;
import com.iplay.vo.message.MessageVO;

public interface NotificationStorageService {
	List<NotificationDTO> saveMessages(List<MessageVO> messages);
	
	Page<NotificationDTO> listNotifications(Boolean read, Pageable pageable);
	
	int countRead(Boolean read);
	
	boolean setRead(int id, boolean read);
	
	Optional<NotificationDTO> findById(int id);
}
